<% content_for :css do %>
  <%= stylesheet_link_tag "search", :media => "all" %>
  <%= stylesheet_link_tag "home/news2Style", :media => "all" %>
<%end%>

<!--header(end)-->
<!--main(start)-->
<div class="main">
    <div class="top">
      <span class="n_gray fistPage"><a href="<%=root_path%>" class="n_gray fistPage">首页</a></span>
      <span class="n_gray">></span>
      <span>搜索页面</span>
    </div>
    <div class="right_top">
      <span class="right_title">高级搜索</span>
    </div>
    <div class="content">
      <div class='search_wrap'>
        <%= form_tag search_index_path, :method => "get" do %>
          <p>
            <input type="text" value="" placeholder='关键词' class="keywords" name='q[keywords]' style="color: #000000" />
            <input type="submit" value="搜索" class="btn_search" />
          </p>
          <p class="check">
            <span>全文搜索</span><input type="checkbox" name='q[check]' />
          </p>
          <div class="search_items">
            <p class="search_prompt">（以下设置可选的高级搜索项）</p>
              <p class='important_new'>
                <span class='yaowen'><input type='checkbox' name='q[is_important]' />
                  &nbsp;&nbsp;校园要闻 
                </span>
                <span class='kuai_xun'><input type='checkbox' name='q[is_not_important_news]' />
                  &nbsp;&nbsp;校园快讯
                </span>
              </p>
              <p class="selectNews" style="color: #000000">
                <span class='bar-title'>类&nbsp;&nbsp;别：</span>
                <%=select_tag(:category_id, options_from_collection_for_select(@categories, "id", "cataname"), class: 'category_id', name: "q[category_id]", prompt: '请选择',:style => 'color:black') %>
                <select name='q[children_id]' class='children_id' style="color: #000000">
                </select>            
              </p>
              <p class="setTime">
                <span class='bar-title'>时间段：</span>
                <input type="text" class='begin_time' name='q[begin_time]' style="color: #000000" />
                <span>到</span>
                <input type="text" class='end_time' name='q[end_time]' style="color: #000000" />
              </p>
              <p>
                <span class='bar-title'>作&nbsp;&nbsp;者：</span>
                <input type="text" name='q[writer]' style="color: #000000" />
              </p>
              <p class="department">
                <span class='bar-title'>部&nbsp;&nbsp;门：</span>
                <%=select_tag(:department_id, options_from_collection_for_select(@departments, "id", "name"), class: 'department_id', name: "q[department_id]", prompt: '请选择',:style => 'color:black') %>
              </p>
          </div>
        <% end %>
      </div>
    </div>
</div>